package com.josn.messagewall.mapper;

import com.josn.messagewall.pojo.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MessageMapper {
    /**
     * 插入留言
     */
    @Insert("insert into message(id,messageinfo,create_time) values (#{id},#{messageinfo},now())")
    void insertmessage(Message message);
}
